
import { createI18n } from 'vue-i18n';
 
const messages = {
  en: {
    loginView: {
      userName: 'Username：',
      userNameInput:'Please enter username or email address',
      password:'Password：',
      passwordInput:'Please enter password',
      login:'login',
      codeInput:'Please enter Captcha',
      codeInputEmpty:'Please enter captcha(can be empty)',
      code:'Captcha',
      code2:'Captcha：',
      getCode:'GetCaptcha',
      realnameInput:'Please enter real name (can be empty)',
      realname:'Realname：',
      register:'Sign up',
      emailInput:'Please enter email address (can be empty)',
      email:'Email：',
      registerUserNameInput:'Please enter username',
      noAccount:'No account？',
      clickme:'Click me to register'
    },
    describeView:{
      title1: 'Online Exam System',
      title2: 'Enhance learning experience anytime, anywhere',
      title3: 'Rich question bank resources',
      title4: 'Flexible exam schedule',
      title5: 'Detailed score analysis',
    },
    indexView:{
      home: 'Home',
      problems: 'Problem',
      test: 'Test',
      exam: 'Exam',
      cute:'Cute',
      pinyin:'PinYin',
      pixel:'Pixel',
      rosyClouds:'Rosyclouds',
      youyuan:'YouYuan(default)',
      fontChoose:'Font',
      class:'class'
    },
    enum:{
      single:'single',
      fill:'fill',
      judge:'judge',
      multiple:"multiple",
      big:"big",
      simple:'simple',
      medium:'medium',
      difficulty:'difficult',
      all:"all"
    },
    problemView:{
      description:'description',
      difficulty:'difficulty',
      type:'type',
      knowledge:'knowledge',
      search:'Description:',
      searchInput:'Press Enter to search',
      answerAnalysis:'Answers and Analysis',
      answer:'answer：',
      analysis:'analysis：',
      clickMeShow:'Click on me to display',
      code:'code',
      options:'options',
      result:'result'
    },
    textView:{
      randomPractice:"RandomPractice",
      right:"right",
      wrong:'wrong',
      accuracy:"accuracy",
      noCode:'This question has no code',
      problemDescription:'ProblemDescription',
      inputAnswer:'Please enter the answer',
      submitAnswer:'submit',
      t2:'Tips :',
      t3:'Randomly practice improve solving ability',
      t4:'Discover unknown,consolidat known,learn efficienter',
      t5:'QuestionParame：',
      t6:'Record',
      t7:'Practicing',
      t8:'self-testing',
      t9:'Tips :',
      t10:'The maximum score is 100 points',
      t11:'15 multiple questions,2 points per',
      t12:'5 fill questions,3 points per',
      t20:'10 judge questions,2 points per',
      t21:'10 judge questions,2 points per',
      t13:'4 major questions,5 points per',
      t14:'Record:',
      t15:'Score：',
      t16:'Ranking：',
      t17:'Record',
      t18:'Practicing',
      t19:'Daily Word',
      toOn:'Last',
      toDown:'Next',
      tips:'Tip: Use ↑↓ to quickly get point',
      a1:'Distance End：',
      a2:'Min',
      a3:'Sec',
      submit:'submit',
      textName:'TextName',
      score:'Score',
      status:'Status',
      status1:'Texting',
      status2:'Judgeing',
      status3:'Finish',
      status4:'Exception',
      time:'time',
      createTime:'CreateTime',
      tips2:'If you have any objections to this review, or if the answers to the questions have been updated, you can try re evaluating',
      resubmit:'ReSubmit',
      joinTest:'JonTest'
    },
    examView:{
      contest:'contest',
      examName:'examName',
      belong:'belong',
      add:'add',
      waiting:'waiting',
      examing:'examing',
      end:'ended',
      enrollment:'enrollment',
      score:'score',
      ranking:'ranking',
      t1:'please join quitely',
      distance:'starts',
      examTime:'time',
      day:'D',
      hour:'H',
      minutes:'M',
      second:'S',

    },
  },
  cn: {
    loginView: {
      userName: '用户名：',
      userNameInput:'请输入用户名或邮箱',
      password:'密码：',
      passwordInput:'请输入密码',
      login:'登入',
      codeInput:'请输入验证码',
      codeInputEmpty:'请输入验证码(可以为空)',
      code:'验证码',
      code2:'验证码：',
      getCode:'获取验证码',
      realnameInput:"请输入真实姓名(可以为空)",
      realname:'真实姓名：',
      register:"注册",
      emailInput:'请输入邮箱(可以为空)',
      email:'邮箱： ',
      registerUserNameInput:'请输入用户名',
      noAccount:'没有账号？',
      clickme:'点我注册'
    },
    describeView:{
      title1: '在线考试系统',
      title2: '提升您的学习体验，随时随地参与考试',
      title3: '丰富的题库资源',
      title4: '灵活的考试时间',
      title5: '详细的成绩分析',
    },
    indexView:{
      home: '首页',
      problems: '题库',
      test: '测验',
      exam: '考试',
      cute:'可爱风',
      pinyin:'拼音',
      pixel:'像素风',
      rosyClouds:'彩云',
      youyuan:'幼圆(默认)',
      fontChoose:'字体选择',
      class:'班级'
    },
    enum:{
      single:'单选',
      fill:'填空',
      judge:'判断',
      multiple:"多选",
      big:"大题",
      simple:'简单',
      medium:'中等',
      difficulty:'困难',
      all:"全部"
    },
    problemView:{
      description:'题目描述',
      difficulty:'难度',
      type:'类型',
      knowledge:"知识点",
      search:'题目描述:',
      searchInput:'按回车搜索',
      answerAnalysis:'答案与解析',
      answer:'答案：',
      analysis:'解析：',
      clickMeShow:'点我显示',
      code:'题目代码',
      options:'选项',
      result:'结果'
    },
    textView:{
      randomPractice:"随机刷题",
      right:"正确",
      wrong:'错误',
      accuracy:"正确率：",
      noCode:'此题无代码',
      problemDescription:'题目描述',
      inputAnswer:'请输入答案',
      submitAnswer:'提交答案',
      t2:'小贴士:',
      t3:'随机刷题，全面提升你的解题能力！',
      t4:'发现未知，巩固已知，让学习更高效！',
      t5:'刷题参数：',
      t6:'刷题记录',
      t7:'开始刷题',
      t8:'自我测验',
      t9:'小贴士:',
      t10:'卷面满分100分',
      t11:'单选15题,每题2分',
      t12:'填空5题,每题3分',
      t20:'判断10题,每题2分',
      t21:'多选5题,每题3分',
      t13:'大题4题,每题5分',
      t14:'战绩:',
      t15:'竞赛分：',
      t16:'全站排名：',
      t17:'测验记录',
      t18:'开始测验',
      t19:'每日金句',
      toOn:'上一题',
      toDown:'下一题',
      tips:'小贴士:使用↑↓方向键可快速切题哦',
      a1:'距离结束：',
      a2:'分',
      a3:'秒',
      submit:'提交试卷',
      textName:'测验名',
      score:'分数',
      status:'状态',
      status1:'测验中',
      status2:'评测中',
      status3:'已完成',
      status4:'异常',
      time:'时长',
      createTime:'创建时间',
      tips2:'如果你对此次评测有异议，或者题目答案已更新，你可尝试重新评测',
      resubmit:'重新测评',
      joinTest:'进入测验'
    },
    examView:{
      contest:'竞赛',
      examName:'考试名',
      belong:'班级',
      add:'可加入',
      waiting:'等待开始',
      examing:'进行中',
      end:'已结束',
      enrollment:'报名人数',
      score:'得分',
      ranking:'排名',
      t1:'您已报名，请尽快加入',
      distance:'距离开始',
      examTime:'考试时间',
      day:'天',
      hour:'时',
      minutes:'分',
      second:'秒',
    },
  }
};
 
const i18n = createI18n({
  locale: localStorage.getItem("language")=='English'?'en':'cn', // 设置默认语言
  fallbackLocale: 'en', // 设置后备语言
  messages, // 语言包
});
 
export default i18n;